export class Stack<T> {
  private items:T[] = []

  get length():number {
    return this.length
  }

  push(...values:T[]) {
    this.items.push(...values)
  }

  pop() {
    return this.items.pop()
  }

  peek() {}
  empty() {}
  search(value:T) {}
  get(index:number) {
    return this.items[index]
  }
  includes(value:T) {
    return this.items.includes(value)
  }
}